﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZCrawler
{
    public class ZCrawlDataReplaceProcessor : ZCrawlDataProcessor
    {
        public string ori_str { get; set; }
        public string to_str { get; set; }
        public override string Process(string str)
        {
            return str.Replace(ori_str, to_str);
        }
        public override string Description
        {
            get
            {
                return string.Format("Replace {0} to {1}",ori_str,to_str);
            }
            set
            {
                base.Description = value;
            }
        }
    }
}
